package com.cti.ftpservice.vo;

import java.io.IOException;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.cti.ftpservice.localParseRunnable.OnixXmlFileParseRunnable;


public class OnixXmlFileParseRunnableVo extends FtpBaseTaskInfoVo{

	private static Log logger = LogFactory.getLog(OnixXmlFileParseRunnableVo.class);
	@Override
	public void startWork()  {
		try {
			for (int i = 0; i < threadCount; i++) {
				OnixXmlFileParseRunnable fileParseRunnable=new OnixXmlFileParseRunnable(this);
				Thread thread = new Thread(fileParseRunnable);
				thread.setName("fileParseRunnable" + i);
				threads.add(thread);
				thread.start();
			}
		} catch (Exception e) {
			logger.error(e.getCause().toString());
		}
		
	}
	
}
